from ext import db
from datetime import datetime


# __abstract__表示不能单独作为一个模型出现，作为父类被别人继承
class BaseModel(db.Model):
    __abstract__ = True
    id = db.Column(db.Integer, primary_key = True, autoincrement = True)
    data_time = db.Column(db.DateTime, default = datetime.now)